<?php
    class ArtigosModel extends Model{
        public function corpoArtigo( $id ){
            return $this->read("id={$id}", "1");
        }

        public function validaCategoria( $categoria ){
            if ( !in_array($categoria, array("receitas", "eventos", "blog")) )
                die("Categoria errada.");
        }
    }